name: Test

on: [push, pull_request]

jobs:
  Test:
    name: Test
    runs-on: ubuntu-20.04
    permissions:
      pull-requests: write
      contents: read
      id-token: write
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: 3.8
          cache: 'pip' # caching pip dependencies
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r tests/requirements.txt
          make install
      - name: run the command
        run: make test
      - name: Upload coverage to Codecov
        uses: codecov/codecov-action@v3
